#include <57header.h>

void *func(void *p){

    while(1){
        pthread_testcancel();
    }
    return NULL;
}
int main(int argc,char*argv[])
{

    pthread_t son_id;
    pthread_create(&son_id, NULL, func, NULL);

    sleep(5);
    pthread_cancel(son_id);

    pthread_join(son_id, NULL);
    return 0;
}

